<?php
   // Remember that we must include class2.php
   require_once("../../class2.php");

   // Check current user is an admin, redirect to main site if not
   if (!getperms("P")) {
      header("location:".e_HTTP."index.php");
      exit;
   }

   // Include page header stuff for admin pages
   require_once(e_ADMIN."auth.php");

   // Our informative text
   $text = "
   Thanks plugin created by <a href='http://www.jezza101.co.uk'>jezza101</a><p>
   Please contact me via my forum for feature requests, bug reports, feedback, glowing praise, etc.
   <p>
   <b>Preferences</b>
   <p>
   All preference are marked on by default, but you can switch features off if required, eg if they
   mess with your theme or use too much extra resource
   <p>
   Replace Forum Post Count, this adds in a thanks count and a count of all posts that have received thanks.  This usese the {THANKSPOSTS} shortcode.
   <p>
   Show thanks stats will include stats and links for thanks given and received on the user.php page
   <p>
   Show thanks list includes a list of all users that have thanked a post.  This includes the {THANKEDBY} shortcode in the template.
   <p>
   Show thank stat link on forum.php places a few links to the various stats page next to the normal 'top poster' etc links.
   This will only work on the standard theme template at present.  Let me know if this doesnt work and I will try to improve compatability.
   <p>
   Include a link pref adds a little 'e107 thanks button' link at the bottom of the thanks.php page.  I understand you may
   wish to turn this off on a professional site, but Id be greatful if you left it on where appropriate - help pimp the plugin and e107 :)!!
   Thanks!
   <p>
   An icon can be used in place of the standard link, you will probably need to design your own button as im no graphics artist!
   <p>
   <p>
   <b>Thank Stats</b>
   <p>
   A menu is included to link to the top thankers, thanked posts, etc.  These links are also inserted into the forum.php end info region.
   If you wish to link to these pages elsewhere, look at the menu to see what links are required.
   ";

   // The usual, tell e107 what to include on the page
   $ns->tablerender("MyPlugin Read Me", $text);

   require_once(e_ADMIN."footer.php");
?>

